Skip to content

Add RAG-0001 synthetic poisoning regression fixture - #58

Open
subhashdasyam wants to merge 1 commit into
GenAI-Security-Project:mainfrom
subhashdasyam:add-rag-poisoning-test-0001
Open

Add RAG-0001 synthetic poisoning regression fixture#58
subhashdasyam wants to merge 1 commit into
GenAI-Security-Project:mainfrom
subhashdasyam:add-rag-poisoning-test-0001

Conversation

@subhashdasyam

Copy link
Copy Markdown

Summary

Adds the first synthetic entry to the RAG poisoning and retrieval integrity dataset.

RAG-0001 is a safe two-stage test for:

  • quarantine and retrieval filtering of an unapproved document that targets a return-policy query
  • context resilience when the poisoned passage is deliberately supplied in an isolated test namespace
  • separate measurement of poisoned top-k exposure and a harmless instruction canary

The scenario uses invented policy data, invokes no tools, includes no real identifiers, and requests no external action. The entry follows the repository's current rag.schema.json and one-entry-per-file rule.

I developed the test while updating a detailed practitioner guide to RAG poisoning controls and negative tests: https://www.subhashdasyam.com/2024/09/vector-venom-vector-injection-how-ai.html

Primary research and guidance are included in the entry metadata.

DSGAI mapping

  • DSGAI04: Data, Model and Artifact Poisoning
  • DSGAI05: Data Integrity and Validation Failures
  • DSGAI13: Vector Store Platform Data Security

Validation

  • JSON parses successfully
  • Draft 7 schema validation against data_validation/schemas/rag.schema.json passes
  • Repository test suite passes
  • No PII, credentials, organization names, or internal identifiers are present
  • One dataset entry is added in one file

Checklist

  • Data is anonymized, with no PII, credentials, or organization names
  • Entry references at least one DSGAI ID
  • Validation scripts and schema checks pass
  • One entry per file for dataset contributions

Adds RAG-0001.json for ingestion and retrieval integrity testing.

Signed-off-by: Subhash Dasyam <subhashdasyam@users.noreply.github.com>
Copilot AI review requested due to automatic review settings August 1, 2026 10:27

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a first, fully synthetic “poisoned document” fixture (RAG-0001) to the RAG poisoning & retrieval integrity dataset, intended to support regression testing of ingestion quarantine, authorized retrieval filtering, and instruction-resilience behavior in RAG pipelines.

Changes:

  • Adds a new dataset entry (RAG-0001) describing a two-stage synthetic poisoning scenario targeting a return-policy query.
  • Includes secure vs. vulnerable expected outcomes plus evaluation flags/canary strings and supporting reference links.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants